package com.css.fxfzfxqh.modules.earthquakeRiskAssessmentZoningReport.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class FxqhAssessReportBuildReportDto {
    /**
     * 报告模板id
     */
    @NotBlank
    private String templateId;
    /**
     * 报告编号
     */
    @NotBlank
    private String code;
    /**
     * 报告名称
     */
    @NotBlank
    private String name;

    /**
     * 评估记录id
     */
    @NotNull
    private List<String> recordIds;

    /**
     * 非必填
     */
    private String createUser;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
